﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Doo.Controls
{
    /// <summary>
    /// 事件定义
    /// </summary>
    public class Event : Doo.Scripts.Fields.Field
    {
        public override bool NoQuote
        {
            get
            {
                return true;
            }
        }

        public Doo.Scripts.ClientEvent Target { get; set; }

        public override void RenderValue(System.IO.TextWriter writer, System.Web.UI.Control parent)
        {
            if (this.Target == null) writer.Write("null");
            else
            {
                writer.Write("1");
            }
        }
    }
}
